<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/pForm.jsp" %>
<script src="/plug-in/jquery-easyui-1.5.1/plugins/jquery.choosebox.js"></script>
<title>物料管理新增页面</title>
<script>
$(function(){
	fn.resetForm();
});
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/com.fs.jzzn.pojo.Materiel/newAdd"   >
		 <!--类名属性及默认主键id-->
		 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Materiel" />
		 
		 <input type="hidden" name="createrId" value="${SESSION_USER.user.id}" />
		 
		 <div style="margin-bottom:20px">
			<input class="easyui-autoCode easyui-validatebox" name="mNo" style="width:270px;"   data-options="label:'物料编码:',required:true,prefix:'WL',timestamp:'yyMMddss',validType:['length[1,25]','remote[\'/console/materiel/remote\',\'mNo\']']"/>
		  	<input class="easyui-textbox easyui-validatebox" name="mName" style="width:270px;"   data-options="label:'物料名称:',required:true,validType:{length:[0,45]}"/>
		 </div>
		
		  <div style="margin-bottom:20px">
		 	<select class="easyui-combobox"  name="mKind" style="width:270px;" data-options="label:'物料类别:',required:false" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=C4&pCode_searchType=eq" >
		 	</select>
		  	<input class="easyui-textbox easyui-validatebox" name="mType" style="width:270px;" data-options="label:'物料规格:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		  	<select class="easyui-combobox"  name="mUnit" style="width:270px;" data-options="label:'物料单位:',required:true,panelHeight:150" 
					url="/console/materiel/rewrite/combobox?valueField=mUnit&textField=mUnit" >
		 	</select>
		 	<input class="easyui-numberbox easyui-validatebox" name="money" style="width:270px;" data-options="label:'参考单价(元):',precision:2" />
		 </div>
		  
		 <div style="margin-bottom:20px">
		 	<input class="easyui-textbox easyui-validatebox" name="supplier" style="width:540px;"   data-options="label:'供货单位:',required:false,validType:{length:[0,45]}"/>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 		<input class="easyui-textbox easyui-validatebox" name="remark" multiline="true" style="width:540px;height:60px;" data-options="label:'备注:',required:false,validType:'length[0,300]'" />
		 	</div>
		</form>
	</div>
</body>
</html>